package wzvtc.dbad.attend.entity;

import org.springframework.data.annotation.AccessType;
import org.springframework.data.annotation.Id;
import org.springframework.data.relational.core.mapping.Column;
import org.springframework.data.relational.core.mapping.Table;

/**
 *
 * 课表 - 哪位老师 在什么时候 给哪个班 上什么课
 * 一次课一条记录。
 */
@AccessType(AccessType.Type.FIELD)
@Table("T_CURRICULUM")
public class Curriculum {

    @Id
    private long id;
    private long courseId;
    private long teacherId;
    private long clazzId;

    /**
     * 学年，学期，周次week，星期几day,第几节，
     *例如： 23 02 03 4 06
     * 表示23-24学年第2学期第3周的星期4的第6节课
     *
     * 2301,2302 分别表示23-24学年的第一学期，第二学期
     *
     */
    private long startFrom;
    /**
     * 连着几节课
     * 1表示一节课
     * 2表示连上两节
     * 3表示连上3节
     * 4表示连上4节
     */
    private int hours;


    public Curriculum(long courseId, long teacherId, long clazzId, long startFrom, int hours) {
        this.id = id;
        this.courseId = courseId;
        this.teacherId = teacherId;
        this.clazzId = clazzId;
        this.startFrom = startFrom;
        this.hours = hours;
    }

    public long getId() {
        return id;
    }

    public long getCourseId() {
        return courseId;
    }

    public long getTeacherId() {
        return teacherId;
    }

    public long getClazzId() {
        return clazzId;
    }

    public long getStartFrom() {
        return startFrom;
    }

    public int getHours() {
        return hours;
    }
}